package com.iflysse.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import com.iflysse.service.CourseService;
import com.iflysse.vo.AjaxResult;
import com.iflysse.vo.CourseVo;

@RestController
public class CourseController {
	
	@Autowired
	private CourseService courseService;

	@PostMapping("/teacherCourse/queryTeacherCourse")
	public AjaxResult queryTeacherCourse(String userId) {
		List<CourseVo> list = courseService.queryCourseByTeacherId(userId);
		return AjaxResult.success(list);
	}
}
	